From 2f11655f00b12125a56b4ec3ea44b787c6d76d1a Mon Sep 17 00:00:00 2001 From: LogicParrot Date: Sat, 20 Aug 2016 23:12:48 +0300 Subject: Fix minecart destruction crash (#3336) --- src/Entities/Minecart.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Entities/Minecart.cpp b/src/Entities/Minecart.cpp index 130ea955f..3b58a1ef9 100644 --- a/src/Entities/Minecart.cpp +++ b/src/Entities/Minecart.cpp @@ -1215,7 +1215,7 @@ void cMinecartWithChest::Destroyed() // This makes the command not execute if the world is in the midst of destruction :) - GetWorld()->ScheduleTask(1, [this, &Pickups](cWorld & World) + GetWorld()->ScheduleTask(1, [this, Pickups](cWorld & World) { World.SpawnItemPickups(Pickups, GetPosX(), GetPosY() + 1, GetPosZ(), 4); }); -- cgit v1.2.3